<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
</head>
<body>
<f:view>
    <h:form id="uploadForm" enctype="multipart/form-data">
        <h:panelGrid columns="1">
            <h:panelGroup rendered="#{settingsforconfig.uploaded==false}">
                <t:inputFileUpload id="fileUpload" value="#{settingsforconfig.uploadedFile}"/>
                <h:commandButton value="Загрузить" action="#{settingsforconfig.uploadFile}">
                </h:commandButton>
            </h:panelGroup>
            <h:outputLink value="/config/legal.jsf" rendered="#{settingsforconfig.uploaded==false}">
                <h:outputText value="Вернуться."/>
            </h:outputLink>
            <h:panelGroup rendered="#{settingsforconfig.uploaded==true}">
                <h:outputLink value="/config/legal.jsf">
                    <h:outputText value="Конфигурационный файл загружен. Нажмите, что бы вернуться."/>
                </h:outputLink>
            </h:panelGroup>
        </h:panelGrid>
    </h:form>
</f:view>
</body>
</html>